package model;

public class Message {
	private String registrationId;
	private String message;
	private String group;
	private int numberOfTries;
	
	public Message(){
		registrationId = "";
		message = "";
		numberOfTries = 0;
		setGroup(null);
	}

	public Message(String registrationId, String message, String group) {
		super();
		this.registrationId = registrationId;
		this.message = message;
		this.setGroup(group);
		numberOfTries = 0;
	}

	public String getRegistrationId() {
		return registrationId;
	}

	public void setRegistrationId(String registrationId) {
		this.registrationId = registrationId;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public int getNumberOfTries() {
		return numberOfTries;
	}

	public void increaseNumberOfTries() {
		numberOfTries++;		
	}

	public String getGroup() {
		return group;
	}

	public void setGroup(String group) {
		this.group = group;
	}

}
